package com.java.design.policy.model.abstracts;

import com.java.design.policy.model.interfaces.WeaponBehavior;

/**
 * @author Tony
 */
public abstract class Character {

    protected WeaponBehavior weaponBehavior;

    /**
     * 随时切换武器*
     * @param weaponBehavior
     */
    public void setWeaponBehavior(WeaponBehavior weaponBehavior) {
        this.weaponBehavior = weaponBehavior;
    }

    /**
     * fight*
     */
    public abstract void fight();

}
